As recommended in the QStringView documentation.
}
void
-GpxFormat::start_something_else(const QStringView& el, const QXmlStreamAttributes& attr)
+GpxFormat::start_something_else(QStringView el, const QXmlStreamAttributes& attr)
{
if (!fs_ptr) {
return;
}
void
-GpxFormat::gpx_start(const QStringView& el, const QXmlStreamAttributes& attr)
+GpxFormat::gpx_start(QStringView el, const QXmlStreamAttributes& attr)
{
/*
* Reset end-of-string without actually emptying/reallocing cdatastr.
}
void
-GpxFormat::gpx_end(const QStringView& /*unused*/)
+GpxFormat::gpx_end(QStringView /*unused*/)
{
static QDateTime gc_log_date;
void
-GpxFormat::gpx_cdata(const QStringView& s)
+GpxFormat::gpx_cdata(QStringView s)
{
QString* cdata;
cdatastr += s.toString();
void tag_wpt(const QXmlStreamAttributes& attr);
void tag_cache_desc(const QXmlStreamAttributes& attr);
void tag_gs_cache(const QXmlStreamAttributes& attr) const;
- void start_something_else(const QStringView& el, const QXmlStreamAttributes& attr);
+ void start_something_else(QStringView el, const QXmlStreamAttributes& attr);
void end_something_else();
void tag_log_wpt(const QXmlStreamAttributes& attr) const;
- void gpx_start(const QStringView& el, const QXmlStreamAttributes& attr);
- void gpx_end(const QStringView& unused);
- void gpx_cdata(const QStringView& s);
+ void gpx_start(QStringView el, const QXmlStreamAttributes& attr);
+ void gpx_end(QStringView unused);
+ void gpx_cdata(QStringView s);
void write_attributes(const QXmlStreamAttributes& attributes) const;
void fprint_xml_chain(xml_tag* tag, const Waypoint* wpt) const;
void write_gpx_url(const UrlList& urls) const;
}
static double
-tef_read_comma_float(const QStringView& value)
+tef_read_comma_float(QStringView value)
{
QString svalue = value.toString();
}
static xg_shortcut
-xml_shortcut(const QStringView& name)
+xml_shortcut(QStringView name)
{
QString key = name.toString();
if (xg_shortcut_taglist->contains(key)) {